package cn.sjx.basic.service;

import cn.sjx.auth.domain.Permission1;
import cn.sjx.auth.domain.Role;
import cn.sjx.auth.query.PermissionQuery;
import cn.sjx.auth.query.RoleQuery;
import cn.sjx.basic.utils.BasicQuery;
import cn.sjx.basic.utils.PageList;
import cn.sjx.org.domain.Department;
import cn.sjx.org.query.DepartmentQuery;

import java.io.Serializable;
import java.util.List;

public interface BasicService<T> {
    //查询所有
    public List<T> getAll();

    //查询单个
    public T getById(Serializable id);

    //增加
    public void insert(T t);

    //修改
    public void update(T t);

    //按ID删除
    public void deleteById(Serializable id);

    PageList<T> pageList(BasicQuery basicQuery);



    void batchRemove(List<Long> ids);

    List<T> tree();
}
